package com.tensquare.qa.client;

import com.tensquare.qa.client.impl.BaseClientImpl;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 相当于  这个qa模块是个客户端，然后他要去调用base模块中的方法
 */

@Component
@FeignClient(value = "tensquare-base",fallback = BaseClientImpl.class)
public interface BaseClient {


     //查询一条
    @RequestMapping(value = "/label/{labelId}",method = RequestMethod.GET)
    public Result findById(@PathVariable("labelId")String labelId);
}
